package com.ciwong.epaper.application;

import com.ciwong.epaper.util.EConstants;

/**
 * Created by neo on 2016/7/8.
 * 对应后台定义的常量表
 */
public interface EpaperConstant {

    /**
     * 乐视云点播的 用户UID
     */
    String LE_TV_VOD_UID = "2bfc338ed7";


    String H5_HOST = EConstants.getRunEnvUrl_H5();

    String H5_PK_HOST = "https://pk.ciwong.com/";//https://192.168.18.119:8001///https://pk.ciwong.com/

    /**
     *
     */
    String URL_WORD_PK_H5 = H5_PK_HOST + "index.html?";

    /**
     *
     */
    String URL_LSW_DETAILS = H5_HOST + "ls/index.html#";


    String URL_LSW_SHARE = H5_HOST + "lsShare/index.html#";
    /**
     *
     */
    String URL_READING_REPEAD = H5_HOST + "reading/index.html#";
    /**
     * 学习记录
     */
    String URL_LEARN_RECORD_H5 = H5_HOST + "learningRecord/index.html#";

    /**
     * 排行榜
     */
    String URL_RANKING_H5 = H5_HOST + "ranking/index.html#";

    /**
     * 时文
     */
    String URL_H5_TIME_NEWS = H5_HOST + "news/index.html#";

    /**
     * 排行榜
     */
    String URL_H5_MINE_GRADE = H5_HOST + "statistical/index.html?";
    /**
     * 我的积分
     */
    String URL_H5_MINE_POINT = H5_HOST + "integral/index.html?";
    /**
     * 积分规则
     */
    String URL_H5_MINE_RULE = H5_HOST + "integral/rules.html?";
    /**
     * 积分指南
     */
    String URL_H5_MINE_GUIDE = H5_HOST + "integral/guide.html?";
    /**
     * 资源中心
     */
    String URL_H5_RECOURSE_CENTER = H5_HOST + "source/index.html?";

    /**
     * 发现类目列表
     */
    String URL_H5_FIND_LIST_CENTER = H5_HOST + "findList/index.html?";
    /**
     * 发现详情
     */
    String URL_H5_FIND_DETAIL_CENTER = H5_HOST + "findDetail/index.html?";

    /**
     * 配音详情
     */
    String URL_H5_DUB_VIDEO_RECORD_DETAIL = H5_HOST + "dubDetail/index.html?";

    /**
     * 作文识别列表
     */
    String URL_H5_ESSAY_LIST = H5_HOST + "essay/list.html?";

    /**
     * 作文识别详情
     */
    String URL_H5_ESSAY_DETAIL = H5_HOST + "essay/detail.html?";

    /**
     * 习习向上家长端使用说明
     */
    String URL_H5_BANNER = "https://mp.weixin.qq.com/s/5q_j1KHwsFsuAKvciGDyeA";
    /**
     * 发现
     */
    String URL_H5_FIND = H5_HOST + "integral/discovery.html?";

    String URL_H5_DICATION = H5_HOST + "dictation/index.html?";
    //我的勋章页面

    String URL_H5_MEDAL = H5_HOST + "medal/index.html?";

    /**
     * 在线作答学习记录
     * http://prevm.teacher.jiaofuyun.com/v1706_moliban/onlinePaper/detail.html#clientId=20001&userId=543885408&brandId=524726977&versionId=634828917904331620&doWorkId=7217678200179671
     */
    String URL_ONLINE_PAPER_DETAIL_H5 = H5_HOST + "onlinePaper/detail.html#";
    String URL_INTERACTIVE_TUTORIAL_DETAIL_H5 = H5_HOST + "onlinePaper/itDetail.html#";


    /**
     * 用户角色，对应表1.5
     */
    //无
    public static final int USER_ROLE_UNKNOW = 0;
    //学生
    public static final int USER_ROLE_STUDENT = 1;
    //老师
    public static final int USER_ROLE_TEACHER = 2;
    //学生和老师
    public static final int USER_ROLE_STUDENT_AND_TEACHER = 3;
    //家长
    public static final int USER_ROLE_PARENT = 4;

    //学生和家长
    public static final int USER_ROLE_STUDENT_AND_PARENT = 5;

    //老师和家长
    public static final int USER_ROLE_TEACHER_AND_PARENT = 6;
    //学生和老师和家长
    public static final int USER_ROLE_STUDENT_TEACHER_AND_PARENT = 7;


    public static final int REQ_CODE_EXPIRE_TO_BUY_SERVICE = 104;// 已过期的服务去购买

    //请求code
    //获取班级列表页面
    public static final int REQUEST_CODE_GET_CLASS_LIST = 1001;
    //更改班级页面
    public static final int REQUEST_CODE_CHANGE_CLASS_PAGE = 1002;
    //班级详情页面
    public static final int REQUEST_CODE_CLASS_JUMP_DETAIL_PAGE = 1003;

    //资源中心服务详情页面
    public static final int REQUEST_CODE_CLASS_JUMP_BUY_SERVICE_PAGE = 1004;

    //听说模考视频
    public static final int REQUEST_CODE_LISTEN_SPEAK_VIDEO = 1005;

    //听说模考播放无声视频和录音
    public static final int REQUEST_CODE_LISTEN_SPEAK_VIDEO_AND_RECORD = 1006;

    //视频讲解，在线作答结果页面
    public static final int REQUEST_CODE_VIDEO_EXPLAIN_ONLINE_ANSWER_RESUTL = 1007;


    //听说模考播放自主提问视频
    public static final int REQUEST_CODE_LISTEN_SPEAK_INDEPENDENT_QUESTION = 1008;

    //点播视频下载
    public static final int REQUEST_CODE_DOWNLOAD_VOD_VIDEO = 1009;


    //S视频讲解在线作答页面跳转到加班级
    public static final int REQUEST_CODE_VIDEO_EXPLAIN_ONLINE_JOIN_CLASS = 1010;

    //S视频讲解在线作答页面跳转到加班级
    public static final int REQUEST_CODE_WIPE_CACHE = 1011;

    //获取掌握状态
    public static final int REQUEST_CODE_GET_VIDEO_MASTER_STATE = 1012;

    //获取掌握状态
    public static final int REQUEST_CODE_RETRY_PAGE = 1013;

    //获取掌握状态
    public static final int REQUEST_CODE_LSW_JUMP_SETTING = 1014;

    //听说模考重做某题
    public static final int REQUEST_CODE_LSW_REDO_QUESTION = 1015;


    //到排行榜页面
    public static final int REQUEST_CODE_TO_RANK_PAGE = 1016;


    public static final int REQUEST_CODE_TO_H5_RECORD_PAGE = 1017;


    public static final int REQUEST_CODE_TO_LAUNCHER_LOGIN = 1018;

    public static final int REQUEST_CODE_TO_BOO_STORE_FROM_ADD_BOOKS = 1019;


    //广播
    public static final String ACTION_PACKAGE_DELETE = "ACTION_PACKAGE_DELETE";


    //听说模考跳转播放不需要录音类型
    public static final int LISTEN_SPEAK_PLAY_TYPE_NO_NEED_RECORD = 0;
    //听说模考跳转播放需要录音类型
    public static final int LISTEN_SPEAK_PLAY_TYPE_NEED_RECORD = 1;

    //听说模考跳是否是自主提问类型
    public static final int LISTEN_SPEAK_INDEPENDENT_QUESTION = 4;
    //听说模考跳转播放需要录音类型
    public static final int LISTEN_SPEAK_NOT_INDEPENDENT_QUESTION = 3;


    //h5 页面跳转来源类型
    //视频讲解
    public static final int H5_JUMP_TYPE_VIDEO_EXPLAIN = 0;
    //在线作答
    public static final int H5_JUMP_TYPE_ONLINE_ANSWER = 1;
    //错题本
    public static final int H5_JUMP_TYPE_WRONG_QUESTION_BOOK = 2;


    public static final int H5_PAGE_TYPE_STUDY_RECORD = 11;
    public static final int H5_PAGE_TYPE_STUDY_DEFAULT = 12;


    //视频讲解掌握状态
    //未标记
    public static final int MASTERED_STATUS_NOT_CONFIRM = 0;
    //掌握
    public static final int MASTERED_STATUS_YES = 1;
    //掌握
    public static final int MASTERED_STATUS_NO = 2;

    //掌握
//    public static final int     MSG_CHECK_ON_STOP_CALL_BACK=101;


    //接收到推送下来的通知
    public static final String BROADCAST_HOME_WORK_STATUS_CHANGE_MSG = "BROADCAST_HOME_WORK_STATUS_CHANGE_MSG";
    //互动教程作业完成状态后天刷新不及时，单独处理一下，（做延时处理）
    public static final String BROADCAST_HOME_WORK_STATUS_INTERACTIVE_TUTORIAL_FINASH = "BROADCAST_HOME_WORK_STATUS_INTERACTIVE_TUTORIAL_FINASH";

    public static final String BROADCAST_AUTONOMIC_STUDY_STATUS_CHANGE_MSG = "BROADCAST_AUTONOMIC_STUDY_STATUS_CHANGE_MSG";
    //获取服务刷新书桌
    public static final String BROADCAST_GET_SERVICE_REFRESH_BOOK_DESK = "BROADCAST_GET_SERVICE_REFRESH_BOOK_DESK";

    public static final String BROADCAST_SETBOOKS_HEAD = "BROADCAST_SETBOOKS_HEAD";

    public static final String BROADCAST_CLASS_CHANGE = "BROADCAST_CLASS_CHANGE";

    public static final String BROADCAST_HIDE_TAB_BAR = "BROADCAST_HIDE_TAB_BAR";

    public static final String BROADCAST_SHOW_TAB_BAR = "BROADCAST_SHOW_TAB_BAR";
    //为互动教程添加积分成功，发消息（作用：当是考试时，在加几分之后提示查看时间）
    public static final String BROADCAST_INTERACTIVE_TUTORIAL_ADD_POINT_OVER = "BROADCAST_INTERACTIVE_TUTORIAL_ADD_POINT_OVER";


    //刷新我的作业
    public static final String INTENT_BOACK_REF_WORK = "INTENT_BOACK_REF_WORK";

    //缓冲时间，超过就弹出下载引导对话框
    public static final int MAX_BUFFER_TIME = 15;


    //网络连接变化类型
    //
    public static final int NETWORK_CHANGE_TYPE_WIFI_CONNECT_ONLY = 1;

    public static final int NETWORK_CHANGE_TYPE_MOBILE_CONNECT_ONLY = 2;

    public static final int NETWORK_CHANGE_TYPE_ALL_DISCONNECT = 3;


    public static final int DEFAULT_OLD_SERVICE_ID = -101;


    //默认为：1：移动端；2：web(代理平台)
    public static final int TYPE_ID_OF_MOBILE = 1;
    //试用类型（5：移动端 6：渠道商赠送）
    public static final int TRLALTYPEID_OF_MOBILE = 5;

    //欢迎页面展示时间
    public static final int SPLASH_TIME = 1000;

    public static final String UPLOAD_STATE_SUCCESS = "[阿里云上传成功]";

    public static final String UPLOAD_STATE_FAIL = "[阿里云上传失败]";


    public static final String DOWNLOAD_STATE_FAIL = "[下载失败]";


    int SCORE_STATUS_ONLINEANSWER_UNCOMPLETE = 17;
    //    听说模考作业状态(4:已批改完成 16:等待批改)
    public static final int SCORE_STATUS_UNCOMPLETE = 16;


    //听说主管批改中
    public static final int SCORE_STATUS_TSMK_UNCOMPLETE = 15;


    public static final int SCORE_STATUS_COMPLETE = 4;


    public static final int ERROR_CODE_RECORD_FILE_MISS = -1001;


    /**
     * 传给AddBookActivity的标识
     */
    public static final String CLOSE_ADDBOOKACTIVITY = "CLOSE_ADDBOOKACTIVITY";

    public static final String KEY_PLAY_VUID = "vuid";
    public static final String KEY_PLAY_UUID = "uuid";
    public static final String KEY_PLAY_MODE = "playMode";
}
